//
//  MoreSongeTableViewCell.m
//  212--Homework  QQy音乐  阿里星球
//
//  Created by li cheng on 16/8/15.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import "MoreSongeTableViewCell.h"
#import "MoreSongCollectionViewCell.h"
#import "Layout.h"
@interface MoreSongeTableViewCell()<UICollectionViewDelegate, UICollectionViewDataSource>
@property (weak, nonatomic) IBOutlet UICollectionView *moreSongCollectionView;

@end
@implementation MoreSongeTableViewCell


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self.moreSongCollectionView registerNib:[UINib nibWithNibName:@"MoreSongCollectionViewCell" bundle:[NSBundle mainBundle]] forCellWithReuseIdentifier:@"MoreSongCollectionViewCell"];
//    Layout *layout = [[Layout alloc] init];
//    _moreSongCollectionView = [[UICollectionView alloc] initWithFrame:self.contentView.bounds collectionViewLayout:layout];
    _moreSongCollectionView.delegate = self;
    _moreSongCollectionView.dataSource = self;
//    _moreSongCollectionView.collectionViewLayout = layout;
//    [_moreSongCollectionView layout]
}

- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{
    return 6;
}
- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
    UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"MoreSongCollectionViewCell" forIndexPath:indexPath];
    cell.backgroundColor = [UIColor redColor];
    return cell;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
